<div class="content_box_large">
<p><b class="green">%{trn key="user_registration"}</b></p>
<form action="" method="POST" name="registerForm" id="registerForm">
	<fieldset>
		<legend>%{trn key="user_account_info"}</legend>
		
		<label for="registerForm_email">%{trn key="user_email"}*:</label>
		<input type="text" name="user[email]" id="registerForm_email" value="%{$user->getEmail()}" class="large"/>
		<br/>
		<label for="registerForm_password">%{trn key="user_pass"}*:</label> 
		<input type="password" name="user[pass]" id="registerForm_password" class="large"/>
		<br/>
		<label for="registerForm_password_confirm">%{trn key="user_pass_confirm"}*:</label> 
		<input type="password" id="registerForm_password_confirm" class="large" />
		<br/><br/>
		<label for="registerForm_name">%{trn key="user_name"}:</label>
		<input type="text" name="user[name]" id="registerForm_name" value="%{$user->getName()}" class="large" />
		<br/>
		<label for="registerForm_phone">%{trn key="user_phone"}:</label>
		<input type="text" name="user[phone]" id="registerForm_phone" value="%{$user->getPhone()}" class="large" />		
		<br/><br/>
		<input type="submit" name="method:save" id="registerForm_submit" value="%{trn key="register"}"/>
	</fieldset>
</form>
<script type="text/javascript">
	$(document).ready(function() {
		$("#registerForm").submit(function () {
			var pass1 = $("#registerForm_password").val();
			var pass2 = $("#registerForm_password_confirm").val();
			if (pass1 != pass2) {
				alert("%{trn key="register_error_passwords_not_match"}");
				return false;
			}
		});
	});
</script>
</div>